package com.renchunlin.scrollviewlistview

import android.os.Bundle
import android.widget.ArrayAdapter
import android.widget.ListView
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val data = ArrayList<String>()
        data.add("66666")
        data.add("77777")
        data.add("88888")
        data.add("99999")
        data.add("00000")
        val list: ListView = findViewById(R.id.list)
        val array = ArrayAdapter(this, android.R.layout.simple_list_item_1, data)
        list.adapter = array
    }
}